<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="css/lindex.css"/>
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">
</head>
<script type="text/javascript">
	function show(a){
		var to1=document.getElementById(a.id).getAttribute("toiframe1");
		var to2=document.getElementById(a.id).getAttribute("toiframe2");
		document.getElementById("iframe1").src=to1;
		document.getElementById("iframe2").src=to2;
	}
</script>
<body>
	<div class="top">
		<div class="top-left">
			<div>RottenEgg后台管理</div>
		</div>
		<div class="top-right">
			<a href="javascript:;" id="to1"><li><i class="fa fa-gear fa-2x" style="color:white;margin-top:10px;"></i></li></a>
			<a href="javascript:;" id="to2" onclick="show(this)" toiframe1="lhome.jsp" toiframe2="lhome?action=querySelect"><li>系统</li></a>
			<a href="javascript:;" id="to3" onclick="show(this)" toiframe1="lcount.jsp" toiframe2="user?action=dateCount"><li>统计</li></a>
			<a href="javascript:;" id="to4" onclick="show(this)" toiframe1="lorders.jsp" toiframe2="lorders?action=queryByPage&curpage=1&pagesize=4&ifdelete=1"><li>订单</li></a>
			<a href="javascript:;" id="to5" onclick="show(this)" toiframe1="lvip.jsp" toiframe2="lvip?action=queryByPage&curpage=1&pagesize=4&ifdelete=1"><li>会员</li></a>
			<a href="javascript:;" id="to6" onclick="show(this)" toiframe1="lgoods.jsp" toiframe2="goodslist?action=queryByPage&curpage=1&pagesize=4&ifdelete=1&address=lgoodslist.jsp"><li>商品</li></a>
		</div>
	</div>
	<div class="bottom" id="bottom">
	<script type="text/javascript">
		autodivheight();
		function autodivheight(){ //函数：获取尺寸
	    	//获取浏览器窗口高度
	    	var winHeight=0;
	    	if (window.innerHeight)
	       		winHeight = window.innerHeight;
	    	else if ((document.body) && (document.body.clientHeight))
	        	winHeight = document.body.clientHeight;
	    	//通过深入Document内部对body进行检测，获取浏览器窗口高度
	    	if (document.documentElement && document.documentElement.clientHeight)
	        	winHeight = document.documentElement.clientHeight;
	    	//DIV高度为浏览器窗口的高度
	    	document.getElementById("bottom").style.height= winHeight +"px";
		}
		window.onresize=autodivheight; //浏览器窗口发生变化时同时变化DIV高度
	</script>
		<div class="bottom-left">
			<iframe src="lhome.jsp" id="iframe1" class="iframe1" frameborder="0"></iframe>
		</div>
		<div class="bottom-right">
			<iframe src="lhome?action=querySelect" class="iframe2" id="iframe2" frameborder="0" name="iframe2"></iframe>
		</div>
	</div>
	
</body>
</html>